package com.log.controller.api;

import com.common.entity.Log;
import com.common.untils.CommonResult;
import com.log.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @create 2022-09-03
 */
@RestController
@RequestMapping("caozuolog")
public class CaozuoLogController {
    @Autowired
     private ILogService logService;
    @PostMapping("findAllLog/{currentPage}/{pagesize}")
    public CommonResult findAllLog(@PathVariable Integer currentPage, @PathVariable Integer pagesize, @RequestBody Log log){
        return logService.findAllLog(currentPage,pagesize,log);
    }
}
